package com.zrf.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author zhouruifeng
 * @date 2018/5/18
 */
@SpringBootApplication(scanBasePackages = "com.zrf.dubbo")
public class Main {
    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
        /*ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder(Main.class).web(false).run(args);
        CustomerRefService customerRefService = applicationContext.getBean(CustomerRefService.class);
        for (int i = 0; i < 100000000; i++) {
            try {
                System.out.println(customerRefService.findById(BigDecimal.valueOf(1L)));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }*/
    }
}
